package com.itheima.test;

public class Student1 {
    //成员属性(属性名为name和score)，满参构造方法
    private String name;
    private int score;

    //_____________1________________

    //无参构造
    public Student1() {
    }

    //有参构造
    public Student1(String name, int score) {
        this.name = name;
        this.score = score;
    }


    //2个属性的get/set方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
